package com.dormms.service;

import java.util.List;

import com.dormms.bean.ProclamationInfo;
import com.dormms.dto.ProclamationInfoRole;
import com.dormms.dto.ProclamationInfoRoleInfo;

public interface ProclamationService {
	//查询公告信息表
	public List<ProclamationInfo> queryProclamationInfoListByProclamationInfo(ProclamationInfo proclamationInfo);
	//插入公告信息表
	public Integer insertProclamationInfo(ProclamationInfo proclamationInfo);
	//推送公告
	public Integer insertProclamationRole(ProclamationInfoRole proclamationInfoRole);
	//更新公告信息
	public Integer updateProclamationInfo(ProclamationInfo proclamationInfo);
	//根据公告号查询推送情况
	public ProclamationInfoRoleInfo queryProclamationInfoRoleInfoByProclamationId(Integer proclamationId);
	//根据角色获取所有公告
	public List<ProclamationInfo> queryAllProclamationInfoByRoleId(ProclamationInfo proclamationInfo, Integer roleId);
	public Integer deleteProclamation(Integer proclamationId);
	public Integer deleteProclamationRole(Integer proclamationId, Integer roleId);
}
